package com.ruoyi.fantasy.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fantasy.mapper.FantasyUserDetailMapper;
import com.huanzhidadi.fantasy.bean.domain.FantasyUserDetail;
import com.ruoyi.fantasy.service.IFantasyUserDetailService;
import com.ruoyi.common.core.text.Convert;

/**
 * fantasy用户详情 服务层实现
 * 
 * @author wanghui
 * @date 2019-07-05
 */
@Service
public class FantasyUserDetailServiceImpl implements IFantasyUserDetailService 
{
	@Autowired
	private FantasyUserDetailMapper fantasyUserDetailMapper;

	/**
     * 查询fantasy用户详情信息
     * 
     * @param id fantasy用户详情ID
     * @return fantasy用户详情信息
     */
    @Override
	public FantasyUserDetail selectFantasyUserDetailById(Integer id)
	{
	    return fantasyUserDetailMapper.selectFantasyUserDetailById(id);
	}
	
	/**
     * 查询fantasy用户详情列表
     * 
     * @param fantasyUserDetail fantasy用户详情信息
     * @return fantasy用户详情集合
     */
	@Override
	public List<FantasyUserDetail> selectFantasyUserDetailList(FantasyUserDetail fantasyUserDetail)
	{
	    return fantasyUserDetailMapper.selectFantasyUserDetailList(fantasyUserDetail);
	}
	
    /**
     * 新增fantasy用户详情
     * 
     * @param fantasyUserDetail fantasy用户详情信息
     * @return 结果
     */
	@Override
	public int insertFantasyUserDetail(FantasyUserDetail fantasyUserDetail)
	{
	    return fantasyUserDetailMapper.insertFantasyUserDetail(fantasyUserDetail);
	}
	
	/**
     * 修改fantasy用户详情
     * 
     * @param fantasyUserDetail fantasy用户详情信息
     * @return 结果
     */
	@Override
	public int updateFantasyUserDetail(FantasyUserDetail fantasyUserDetail)
	{
	    return fantasyUserDetailMapper.updateFantasyUserDetail(fantasyUserDetail);
	}

	/**
     * 删除fantasy用户详情对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteFantasyUserDetailByIds(String ids)
	{
		return fantasyUserDetailMapper.deleteFantasyUserDetailByIds(Convert.toStrArray(ids));
	}

	@Override
	public Integer batchResumeUser() {
		return fantasyUserDetailMapper.batchResumeUser();
	}
}
